Class Rotation

Represents a rotation.

Rotations are specifed as a combination of individual angles, in degrees, about each axis. All values will be clamped to [-32768, 32767].

Members

x (int) rotation about x axis
y (int) rotation about x axis
z (int) rotation about x axis

Functions

Rotation.new(X, Y, Z)
__tostring(rotation)


Members

x
(int) rotation about x axis
y
(int) rotation about x axis
z
(int) rotation about x axis

Functions

Rotation.new(X, Y, Z)

Parameters:

  • X int rotation about x axis
  • Y int rotation about y axis
  • Z int rotation about z axis

Returns:

    A Rotation object.
__tostring(rotation)

Parameters:

  • rotation Rotation this rotation

Returns:

    string A string showing the x, y, and z values of the rotation
generated by LDoc 1.4.6 Last updated 2021-08-30 18:45:10